GtkSnapshot: Move collect data to a union in the state
authorAlexander Larsson <alexl@redhat.com>
Wed, 11 Jan 2017 10:21:27 +0000 (11:21 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 11 Jan 2017 10:21:27 +0000 (11:21 +0100)
commitf67ae85b7a33bf1a6a141050d5fc659b0c678d1b
tree0949dae807b48ded083bd0d3cb1f4b722671bf2b
parent65ad2541d736a699d01642096631984be7d64681
GtkSnapshot: Move collect data to a union in the state

This means we allocate the collect data with the state, avoiding
an extra allocation. Also, a union means every state object
is the same size and we could reuse the state objects.
gtk/gtksnapshot.c
gtk/gtksnapshotprivate.h